package com.sds.restaurant;

import java.util.ArrayList;

public class RestaurantService {
	
	public int getCurrentSequenceNum(){
		return new RestaurantDAO().getCurrentSequenceNum();		
	}
	public int insertRestaurant(RestaurantVO restaurant) {
		return new RestaurantDAO().insertRestaurant(restaurant);
	}

	public int updateRestaurant(RestaurantVO restaurant) {
		return new RestaurantDAO().updateRestaurant(restaurant);
	}
	public RestaurantVO selectRestaurant(int ID) {
		return new RestaurantDAO().selectRestaurant(ID);
	}

	public ArrayList<RestaurantVO> selectRestaurantList(String keyWord) {
		return new RestaurantDAO().selectRestaurantList(keyWord);
	}

	public int deleteRestaurant(int ID) {
		return new RestaurantDAO().deleteRestaurant(ID);
	}
}